package com.jeecms.wicool.dao.cms;

import com.jeecms.cms.entity.main.CmsUser;
import com.jeecms.common.hibernate3.Updater;
import com.jeecms.common.page.Pagination;
import com.jeecms.wicool.entity.cms.CmsInfo;

import java.util.List;

/**
 */
public interface CmsInfoDao {
    public Pagination getPage(String title, int pageNo, int pageSize, CmsUser user);

    public Pagination getPage(String title, Short publishType, Integer pageNo, Integer pageSize);

    public CmsInfo findById(Integer id);

    public CmsInfo updateByUpdater(Updater<CmsInfo> updater);

    public CmsInfo save(CmsInfo bean);

    public CmsInfo deleteById(Integer id);

    public List<CmsInfo> getAll(CmsUser user);

    public boolean isHave(CmsInfo bean);

    public CmsInfo findByCmsInfo(CmsInfo bean);

    public CmsInfo findByContentId(Integer contentId);
}